package com.jas.common;


//@author A0121310J
public class Action {
	public static enum ActionType{
		ADD,DELETE,UPDATE
	}
	private ActionType actionType;
	private Event event;
	private boolean isUndo;
	public Action(ActionType actionType,Event event){
		this.actionType = actionType;
		this.event = event;
		isUndo = false;
	}
	
	
	//getter setter method
	public void setActionDesc(ActionType at){
		actionType = at;
	}
	public String getActionDesc(){
		return actionType.toString();
	}
	public void setEvent(Event event){
		this.event = event;
	}
	public Event getEvent(){
		return event;
	}
	public void undoDone(){
		isUndo = true;
	}
	public boolean isUndo(){
		return isUndo;
	}
}
